<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>WMS</title>
		<link href="/css/backstage.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="/js/jquery.min.js"></script>
		<script type="text/javascript" src="/js/backstage.js"></script>
		<link href="/css/blitzer/jquery-ui.css" rel="stylesheet"
			type="text/css" />
		<script type="text/javascript" src="/js/jquery-ui.js"></script>
		<script>

</script>
		<style>
html,body {
	text-align: center;
	border: none;
	background: none
}

#content {
	width: 10cm;
	text-align: left;
	position: relative;
	margin-right: auto;
	background: white;
	height: 100%
}

.contentTop {
	height: 80px;
	line-height: 80px;
	width: 100%;
	text-align: left;
	font-size: 15px;
	font-weight: bold;
}

.contentBottom {
	height: 50px;
	line-height: 50px;
	width: 100%;
	text-align: right;
}

.list {
	width: 100%;
	max-height: 28cm;
	border-collapse: collapse;
	margin-left: 0;
	margin-right: auto;
	margin-right:1cm;
}

.list tr {
	height: 30px
}

.list th,.list td {
	border: 1px solid black;
	text-align: center;
}

.width1 {
	width: 80px;
	text-align: right;
}

.width2 {
	width: 170px;
}

.width3 {
	width: 100px;
}

.width4 {
	width: 150px;
}

.center {
	text-align: center
}

.action {
	cursor: pointer;
	marin: 2px
}

.editTable td {
	padding: 5px;
	text-align: left;
}

.barcode {
	display: inline-block;
	zoom: 1; *
	display: inline;
	margin-left: 5px;
	margin-bottom: 0px;
	height: 40px;
	overflow: hidden;
	margin-top: 30px
}

.printTitle {
	zoom: 1; *
	font-size: 30px;
	text-align:center;
}

.rotate90 {  
        /*-moz-transform: rotate(-90deg);  
        -webkit-transform: rotate(-90deg);  
        filter:progid:DXImageTransform.Microsoft.BasicImage(Rotation=3);
        -o-transform: rotate(-90deg);  
        -ms-transform: rotate(-90deg);  
        transform: rotate(-90deg);  
		*/
        z-index: 1;
        height:13cm;
    }  
</style>

	</head>
	<body>
		<div id="content" style="page-break-after:always">
			
			<{if isset($result.orders)}> 
			<{assign var="itemCount" value="0"}>
			<{foreach from=$result.orders item=order key=key name=order}>
			
			<div class="contentBottom" style=""></div>
			<div class='rotate rotate90' style="<{if !$smarty.foreach.order.last}>page-break-after:always<{/if}>">
			<div class="printTitle" style='clear:both;font-size: 30px;line-height:30px;'>
					<{$lang.pickup_code}>
			</div>
			<div class="contentTop">
				<div class="barcode">
					<img src="/product/receiving/barcode/code/<{$order.orders_code}>" style="width:10cm;"/>
				</div>				
			</div>
			
			<table class="list">
				<tr>
					<td>
						<{$lang.orders_code}>
					</td>
					<td colspan='4'>
						<{$order.orders_code}>
					</td>					
				</tr>
				<tr>
					
					<td>
						<{$lang.customer_code}>
					</td>
					<td colspan='4'>
						<{$order.customer_id}>
					</td>
				</tr>
				<tr>
					<td>
						<{$lang.description}>
					</td>
					<td colspan='2'>
						<{$order.remark}>
					</td>
					<td>
						<{$lang.date}>
					</td>
					<td colspan='1'>
						<{$result.date}>
					</td>
				</tr>
				<tr>
					<th>
						<{$lang.sku}>
					</th>
					<th>
						<{$lang.name}>
					</th>
					<th>
						<{$lang.category}>
					</th>
					<th>
						<{$lang.ws_code}>
					</th>
					<th>
						<{$lang.quantity}>
					</th>
				</tr>
				<{foreach from=$order.order_product item=product key=key name=product}>
					<{$itemCount = $itemCount+1}>
					<{foreach from=$product.bantch item=bantch key=k name=bantch}> 
					<{if $k>0}>
					<{$itemCount = $itemCount+1}>
					<{/if}>
					<tr>
						<td>
							<{$product.product_sku}>
						</td>
						<td>
							<{$product.product_title}>
						</td>
						<td>
							<{$product.category.poc_value}>
						</td>
						<td>
							<{$bantch.ws_code}>
						</td>
						<td>
							<{$product.op_quantity}>
						</td>
					</tr>
					<{/foreach}> 
				<{/foreach}>
			</table>
			</div>
			<{if $order.ship_order}>
			<iframe src="http://www.sfcservice.com/order/print/index/?orderCodeList=<{$order.ship_order}>&printType=1&ismerge=1&isIE=<{$result.isIE}>"
				frameborder="0" scrolling="no"
				noresize="noresize" id='<{$order.ship_order}>' name='<{$order.ship_order}>' style='width:100%;height:15cm;<{if !$smarty.foreach.order.last}>page-break-after:always<{/if}>'></iframe>			
			<{/if}>				
			
			
			
			<{/foreach}> 
			<{/if}>
		</div>

	</body>
</html>